package com.smartmedical.doctor.friend.mapper;

import com.smartmedical.doctor.friend.domain.vo.PatientCircleVo;
import com.smartmedical.doctor.friend.domain.vo.SickCircleByKeyWordVo;
import com.smartmedical.doctor.friend.domain.vo.SickCircleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author：闫晓琪
 * @Filename：PatientCircleMapper
 * @Package：com.smartmedical.dcotor.firend.mapper
 * @Project：smart-medical
 * @name：PatientCircleMapper
 * @Date：2024/1/12 21:38
 */

@Mapper
public interface PatientCircleMapper {
    List<PatientCircleVo> findSickCircleList(@Param("departmentId") Integer departmentId);

    SickCircleVo findSickCircleInfo(@Param("sickCircleId") Integer sickCircleId);


    List<SickCircleByKeyWordVo> searchSickCircle(@Param("keyWord") String keyWord);

    String selectDoctorByUserName(@Param("email") String email);

    Integer publishComment(@Param("whetherDoctor") Integer whetherDoctor, @Param("userId") Long userid, @Param("sickCircleId") Integer sickCircleId, @Param("content") String content, @Param("time") Date date);
}
